using System;
using System.Collections.Generic;
using System.Linq;
using LeadTracker.Models;

namespace LeadTracker.DataAccess
{
	/// <summary>
	/// This combines a collection of leads with any extra data needed to render them.
	/// </summary>
	public class LeadCollectionPackage
	{
		readonly EditorCollection m_Editors;
		readonly LeadCollection m_Leads;

		public LeadCollectionPackage(LeadCollection leads, EditorCollection editors)
		{
			if (leads == null)
				throw new ArgumentNullException("leads", "leads is null.");
			if (editors == null)
				throw new ArgumentNullException("editors", "editors is null.");

			m_Editors = editors;
			m_Leads = leads;
		}

		public EditorCollection Editors
		{
			get { return m_Editors; }
		}

		public LeadCollection Leads
		{
			get { return m_Leads; }
		}
	}
}
